package com.md.entity;

public class Student {
    private  int age;
    private  String SName;
    private  Teacher teacher;



    @Override
    public String toString() {
        return "Student{" +
                "age=" + age +
                ", SName='" + SName + '\'' +
                ", teacher=" + teacher +
                '}';
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSName() {
        return SName;
    }

    public void setSName(String SName) {
        this.SName = SName;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public Student(int age, String SName, Teacher teacher) {
        this.age = age;
        this.SName = SName;
        this.teacher = teacher;
    }

    public Student() {
    }
}
